home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DTP / DTP_TEX / 2848F.ZIP / INPUTS2.ARC / ART10.DOC < prev    next >
Text File  |  1987-12-15  |  16KB  |  370 lines

  1. % ARTICLE DOCUMENT STYLE -- Released 9 June 1987
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1987 by Leslie Lamport
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size.  (Actual 
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize .  This is
  30. % done only for \normalsize, not for any other size-changing commands.
  31.  
  32. \def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
  33. \abovedisplayskip 10pt plus2pt minus5pt%
  34. \belowdisplayskip \abovedisplayskip
  35. \abovedisplayshortskip  \z@ plus3pt%   
  36. \belowdisplayshortskip  6pt plus3pt minus3pt%
  37. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  38.  
  39. \def\small{\@setsize\small{11pt}\ixpt\@ixpt
  40. \abovedisplayskip 8.5pt plus 3pt minus 4pt%
  41. \belowdisplayskip \abovedisplayskip
  42. \abovedisplayshortskip \z@ plus2pt%
  43. \belowdisplayshortskip 4pt plus2pt minus 2pt
  44. \def\@listi{\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
  45. \itemsep \parsep}}
  46.  
  47. \def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
  48. \abovedisplayskip 6pt plus 2pt minus 4pt%
  49. \belowdisplayskip \abovedisplayskip
  50. \abovedisplayshortskip \z@ plus 1pt%
  51. \belowdisplayshortskip 3pt plus 1pt minus 2pt
  52. \def\@listi{\topsep 3pt plus 1pt minus 1pt\parsep 2pt plus 1pt minus 1pt
  53. \itemsep \parsep}}
  54.  
  55. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  56. \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
  57. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  58. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  59. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  60. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  61. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  62.  
  63. \normalsize  % Choose the normalsize font.
  64.  
  65.  
  66. %  ****************************************
  67. %  *            PAGE LAYOUT               *
  68. %  ****************************************
  69. %
  70. % All margin dimensions measured from a point one inch from top and side
  71. % of page.  
  72.  
  73. % SIDE MARGINS:
  74. \if@twoside                 % Values for two-sided printing:
  75.    \oddsidemargin  44pt     %   Left margin on odd-numbered pages.
  76.    \evensidemargin 82pt     %   Left margin on even-numbered pages.
  77.    \marginparwidth 107pt    %   Width of marginal notes.
  78. \else                       % Values for one-sided printing:
  79.    \oddsidemargin  63pt     %   Note that \oddsidemargin = \evensidemargin
  80.    \evensidemargin 63pt
  81.    \marginparwidth 90pt 
  82. \fi
  83. \marginparsep 11pt          % Horizontal space between outer margin and 
  84.                             % marginal note
  85.  
  86.  
  87. % VERTICAL SPACING:        
  88.                          % Top of page:
  89. \topmargin 27pt          %    Nominal distance from top of page to top of
  90.                          %    box containing running head.
  91. \headheight 12pt         %    Height of box containing running head.
  92. \headsep 25pt            %    Space between running head and text.
  93. % \topskip = 10pt        %    '\baselineskip' for first line of page.
  94.                          % Bottom of page:
  95. \footskip 30pt           %    Distance from baseline of box containing foot 
  96.                          %    to baseline of last line of text.
  97.  
  98.  
  99. % DIMENSION OF TEXT:
  100. % 24 Jun 86: changed to explicitly compute \textheight to avoid roundoff.
  101. % The value of the multiplier was calculated as the floor of the
  102. % old \textheight minus \topskip, divided by \baselineskip for \normalsize.
  103. % The old value of \textheight was 528pt.
  104. % \textheight is the height of text (including footnotes and figures, 
  105. % excluding running head and foot).
  106.  
  107. \textheight = 43\baselineskip
  108. \advance\textheight by \topskip
  109. \textwidth 345pt         % Width of text line.
  110.                          % For two-column mode: 
  111. \columnsep 10pt          %    Space between columns 
  112. \columnseprule 0pt       %    Width of rule between columns.
  113.  
  114. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  115. % natural height instead of being stretched to exactly \textheight.
  116.  
  117. % FOOTNOTES:
  118.  
  119. \footnotesep 6.65pt   % Height of strut placed at the beginning of every
  120.                       % footnote = height of normal \footnotesize strut,
  121.                       % so no extra space between footnotes.
  122.  
  123. \skip\footins 9pt plus 4pt minus 2pt  % Space between last line of text and 
  124.                                       % top of first footnote.
  125.  
  126. % FLOATS: (a float is something like a figure or table)
  127. %
  128. %  FOR FLOATS ON A TEXT PAGE:
  129. %
  130. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  131. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats moved
  132.                                          % to top or bottom of text page.
  133. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and floats
  134.                                          % at top or bottom of page.
  135. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures and 
  136.                                          % text.
  137. \@maxsep 20pt                            % The maximum of \floatsep, 
  138.                                          % \textfloatsep and \intextsep (minus
  139.                                          % the stretch and shrink).
  140. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  141. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for double-column
  142.                                          % figures in two-column mode.
  143. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column 
  144.                                          % floats.
  145. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep and 
  146.                                          % \dbltexfloatsep.
  147.  
  148. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  149. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  150. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be    
  151.                          % 0pt plus ...)                                    
  152. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.       
  153. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be 
  154.                          % 0pt plus ... )                                   
  155.  
  156. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  157. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
  158. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  159. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be 
  160.                          % 0pt plus ... )                                   
  161. % MARGINAL NOTES:
  162. %
  163. \marginparpush 5pt       % Minimum vertical separation between two marginal 
  164.                          % notes.
  165.  
  166.  
  167. %  ****************************************
  168. %  *           PARAGRAPHING               *
  169. %  ****************************************
  170. %
  171. \parskip 0pt plus 1pt              % Extra vertical space between paragraphs.
  172. \parindent 15pt                    % Width of paragraph indentation.
  173. %\topsep 8pt plus 2pt minus 4pt    % Extra vertical space, in addition to 
  174.                                    % \parskip, added above and below list and
  175.                                    % paragraphing environments.
  176. \partopsep 2pt plus 1pt minus 1pt  % Extra vertical space, in addition to 
  177.                                    % \parskip and \topsep, added when user
  178.                                    % leaves blank line before environment.
  179. %\itemsep 4pt plus 2pt minus 1pt   % Extra vertical space, in addition to
  180.                                    % \parskip, added between list items.
  181. % See \@listI for values of \topsep and \itemsep
  182. % (Change made 9 Jun 87)
  183.  
  184. % The following page-breaking penalties are defined
  185.  
  186. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  187. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  188. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  189.  
  190. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph environment.
  191. \@endparpenalty   -\@lowpenalty    % After a list or paragraph environment.
  192. \@itempenalty     -\@lowpenalty    % Between list items.
  193.  
  194. % \clubpenalty         % 'Club line'  at bottom of page.
  195. % \widowpenalty        % 'Widow line' at top of page.
  196. % \displaywidowpenalty % Math display widow line.
  197. % \predisplaypenalty   % Breaking before a math display.
  198. % \postdisplaypenalty  % Breaking after a math display.
  199. % \interlinepenalty    % Breaking at a line within a paragraph.
  200. % \brokenpenalty       % Breaking after a hyphenated line.
  201.  
  202.  
  203. %    ****************************************
  204. %    *             SECTIONS                 *
  205. %    ****************************************
  206. %
  207.  
  208. % \secdef{UNSTARCMDS}{STARCMDS} :
  209. %    When defining a sectionioning command without using
  210. %    \@startsection, you can use \secdef as follows:
  211. %       \def\part { ... \secdef \CMDA \CMDB }
  212. %       \def\CMDA  [#1]#2{ ... }     % Command to define \part[...]{...}
  213. %       \def\CMDB  #1{ ... }         % Command to define \part*{...}
  214.  
  215. \def\part{\par               % New paragraph
  216.    \addvspace{4ex}           % Adds vertical space above title.
  217.    \@afterindentfalse        % Suppresses indent in first paragraph.  Change
  218.    \secdef\@part\@spart}     % to \@afterindenttrue to have indent.
  219.  
  220. \def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1
  221.         \refstepcounter{part}                    %  THEN step part counter
  222.         \addcontentsline{toc}{part}{\thepart     %       add toc line
  223.         \hspace{1em}#1}\else                     %  ELSE add unnumbered line
  224.       \addcontentsline{toc}{part}{#1}\fi         % FI
  225.    { \parindent 0pt \raggedright 
  226.     \ifnum \c@secnumdepth >\m@ne   % IF secnumdepth > -1 
  227.       \Large \bf Part \thepart     %   THEN Print 'Part' and 
  228.       \par \nobreak                %          number in \Large boldface.
  229.     \fi                            % FI
  230.     \huge \bf                      % Select \huge boldface.
  231.     #2\markboth{}{}\par }          % Print title and set heading marks null.
  232.     \nobreak                       % TeX penalty to prevent page break.
  233.     \vskip 3ex                     % Space between title and text.
  234.    \@afterheading                  % Routine called after part and
  235.     }                              %     section heading.
  236.  
  237. % Heading for \part* command
  238. \def\@spart#1{{\parindent 0pt \raggedright 
  239.     \huge \bf                       
  240.     #1\par}                         % Title.
  241.     \nobreak                        % TeX penalty to prevent page break.
  242.     \vskip 3ex                      % Space between title and text.
  243.     \@afterheading                  % Routine called after part and
  244.   }                                 %     section heading.
  245.  
  246. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  247. %            optional * [ALTHEADING]{HEADING}
  248. %    Generic command to start a section.  
  249. %    NAME       : e.g., 'subsection'
  250. %    LEVEL      : a number, denoting depth of section -- i.e., section=1,
  251. %                 subsection = 2, etc.  A section number will be printed if
  252. %                 and only if LEVEL < or = the value of the secnumdepth
  253. %                 counter.
  254. %    INDENT     : Indentation of heading from left margin
  255. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  256. %                 If negative, then paragraph indent of text following 
  257. %                 heading is suppressed.
  258. %    AFTERSKIP  : if positive, then skip to leave below heading,
  259. %                       else - skip to leave to right of run-in heading.
  260. %    STYLE      : commands to set style
  261. %  If '*' missing, then increments the counter.  If it is present, then
  262. %  there should be no [ALTHEADING] argument.  A sectioning command
  263. %  is normally defined to \@startsection + its first six arguments.
  264.  
  265. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
  266.     -.2ex}{2.3ex plus .2ex}{\Large\bf}}
  267. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
  268.    -.2ex}{1.5ex plus .2ex}{\large\bf}}
  269. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
  270. -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
  271. \def\paragraph{\@startsection
  272.      {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
  273. \def\subparagraph{\@startsection
  274.      {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
  275.      .2ex}{-1em}{\normalsize\bf}}
  276.  
  277.  
  278. % Default initializations of \...mark commands.  (See below for their
  279. % us in defining page styles.
  280. %
  281.  
  282. % \def\sectionmark#1{}           % Preloaded definitions
  283. % \def\subsectionmark#1{}
  284. % \def\subsubsectionmark#1{}
  285. % \def\paragraphmark#1{}
  286. % \def\subparagraphmark#1{}
  287.  
  288. % The value of the counter secnumdepth gives the depth of the
  289. % highest-level sectioning command that is to produce section numbers.
  290. %
  291.  
  292. \setcounter{secnumdepth}{3}
  293.  
  294. % APPENDIX
  295. %
  296. % The \appendix command must do the following:
  297. %    -- reset the section and subsection counters to zero
  298. %    -- redefine the section counter to produce appendix numbers
  299. %    -- redefine the \section command if appendix titles and headings are
  300. %       to look different from section titles and headings.
  301.  
  302. \def\appendix{\par
  303.   \setcounter{section}{0}
  304.   \setcounter{subsection}{0}
  305.   \def\thesection{\Alph{section}}}
  306.  
  307.  
  308. %    ****************************************
  309. %    *                LISTS                 *
  310. %    ****************************************
  311. %
  312.  
  313. % The following commands are used to set the default values for the list
  314. % environment's parameters. See the LaTeX manual for an explanation of
  315. % the meanings of the parameters.  Defaults for the list environment are
  316. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  317. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  318. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  319. % called for a third-level list.)  By convention, \@listK should set
  320. % \leftmargin to \leftmarginK.
  321. %
  322. % For efficiency, level-one list's values are defined at top level, and
  323. % \@listi is defined to set only \leftmargin
  324.  
  325. \leftmargini 25pt
  326. \leftmarginii 22pt     % > \labelsep + width of '(m)'
  327. \leftmarginiii 18.7pt  % > \labelsep + width of 'vii.'
  328. \leftmarginiv 17pt     % > \labelsep + width of 'M.'
  329. \leftmarginv 10pt
  330. \leftmarginvi 10pt
  331.  
  332. \leftmargin\leftmargini
  333. \labelsep 5pt
  334. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  335. % \parsep 4pt plus 2pt minus 1pt (Removed 9 Jun 87)
  336.  
  337. % \@listI defines top level and \@listi values of
  338. % \leftmargin, \topsep, \parsep, and \itemsep
  339. % (Added 9 Jun 87)
  340. \def\@listI{\leftmargin\leftmargini \parsep 4pt plus 2pt minus 1pt%
  341. \topsep 8pt plus 2pt minus 4pt%
  342. \itemsep 4pt plus 2pt minus 1pt}
  343.  
  344. \let\@listi\@listI
  345. \@listi 
  346.  
  347. \def\@listii{\leftmargin\leftmarginii
  348.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  349.    \topsep 4pt plus 2pt minus 1pt
  350.    \parsep 2pt plus 1pt minus 1pt
  351.    \itemsep \parsep}
  352.  
  353. \def\@listiii{\leftmargin\leftmarginiii
  354.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  355.     \topsep 2pt plus 1pt minus 1pt 
  356.     \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
  357.     \itemsep \topsep}
  358.  
  359. \def\@listiv{\leftmargin\leftmarginiv
  360.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  361.  
  362. \def\@listv{\leftmargin\leftmarginv
  363.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  364.  
  365. \def\@listvi{\leftmargin\leftmarginvi
  366.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  367.  
  368.  
  369.  
  370.